package com.gx.response.tree;

import java.util.ArrayList;
import java.util.List;

public class BootstrapUiTreeNode {

    private String id;//节点的id，每一个树节点的id，对应插件nodeid属性
    private String pid;//节点的id，每一个树节点的id，对应插件nodeid属性
    private String text;//文本，对应text属性，显示在节点上的文本
    private String icon;//对应插件icon属性，列表树节点上的图标，通常是节点左边的图标。，在这里例如glyphicon glyphicon-stop
    private String selectedIcon;//对应插件selectIcon属性，当某个节点被选择后显示的图标，通常是节点左边的图标
    private String color;//对应color，节点的前景色，覆盖全局的前景色选项。
    private String backColor;//对应插件backColor，节点的背景色，覆盖全局的背景色选项。
    private String href;//对应插件href属性，结合全局enableLinks选项为列表树节点指定URL
    private boolean selectable = false;//对应selectable属性，指定列表树的节点是否可选择。设置为false将使节点展开，并且不能被选择
    private List<String> tags = new ArrayList<>(); // tags: ['NUM']
    private List<BootstrapUiTreeNode> nodes = null;//保存子节点，对应插件中nodes属性 默认给空，否则树形结构会显示有节点，节点为0
    private State state = new State();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSelectedIcon() {
        return selectedIcon;
    }

    public void setSelectedIcon(String selectedIcon) {
        this.selectedIcon = selectedIcon;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBackColor() {
        return backColor;
    }

    public void setBackColor(String backColor) {
        this.backColor = backColor;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public boolean isSelectable() {
        return selectable;
    }

    public void setSelectable(boolean selectable) {
        this.selectable = selectable;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public List<BootstrapUiTreeNode> getNodes() {
        return nodes;
    }

    public void setNodes(List<BootstrapUiTreeNode> nodes) {
        this.nodes = nodes;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }
}
